<?php if (count($products) > 0) { ?>
<div class="widget LatestProductReviews">
	<h3 class="widget-title widget-title "> <?php echo $heading_title; ?></h3>
    <ul class="product-list-small">
    	<?php foreach ($products as $product) { ?>
        	<li>  
            	 <?php if ($product['thumb']) { ?>
       				<div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
       			 <?php } ?>
                 <div class="desc">
                 	<h6> <a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a> </h6>
                    <?php if ($product['rating']) { ?>
                    	<div class="rating rating-<?php echo $product['rating']; ?>">
                        	<?php for($i=1;$i<=$product['rating'];$i++){?>
                        		<i class="icon-heart"></i>
                            <?php }?>
                        </div>
                    <?php } ?>
                 </div>
            </li>
        <?php }?>
    </ul>
</div>
	
<?php /*
<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
    <div class="box-product">
      <?php foreach ($products as $product) { ?>
      <div>
        <?php if ($product['thumb']) { ?>
        <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
        <?php } ?>
        <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
        <?php if ($product['price']) { ?>
        <div class="price">
          <?php if (!$product['special']) { ?>
          <?php echo $product['price']; ?>
          <?php } else { ?>
          <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
          <?php } ?>
        </div>
        <?php } ?>
        <?php if ($product['rating']) { ?>
        <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
        <?php } ?>
        <div class="cart"><a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><span><?php echo $button_cart; ?></span></a></div>
      </div>
      <?php } ?>
    </div>
  </div>
</div>
<?php */ } ?>
